#Include <ScreenCapture.au3>
#Include <File.au3>
#Include <Function For PageViewer.au3>
#Include <GuiListView.au3>
#include <Date.au3>

If $bPageViewType <> 1 Then Exit 
$sLogFileName1 = 'PageViewer2'
Common_WriteCurrentFunctionNameToTempTXT($sLogFileName1)

PageViewer3_2_8()
PageViewer3_2_9()
PageViewer3_2_10()
PageViewer3_2_11()
PageViewer3_2_12()
PageViewer3_2_13()
PageViewer3_2_14()
PageViewer3_2_15()
PageViewer3_2_16()
PageViewer3_2_17()
PageViewer3_2_18()
PageViewer3_2_19()
PageViewer3_2_20()
PageViewer3_2_21()
PageViewer3_2_22()
PageViewer3_2_23()
PageViewer3_2_25()
PageViewer3_2_27()
PageViewer3_2_28()
PageViewer3_2_29()
PageViewer3_2_30()
PageViewer3_2_31()
PageViewer3_2_37()
PageViewer3_2_43()
PageViewer3_2_44()
PageViewer3_2_45()
PageViewer3_2_46()
PageViewer3_2_48()
PageViewer3_2_49()
PageViewer3_2_50()
PageViewer3_2_51()
PageViewer3_2_52()
PageViewer3_2_53()
PageViewer3_2_54() 
PageViewer3_2_55()
PageViewer3_2_57() 
PageViewer3_2_60()
PageViewer3_2_61()
PageViewer3_2_62()
PageViewer3_2_63()
PageViewer3_2_67()
PageViewer3_2_68()
PageViewer3_2_69()
PageViewer3_2_70()
PageViewer3_2_71()
PageViewer3_2_72()
PageViewer3_2_73()
PageViewer3_2_74()
PageViewer3_2_76()
PageViewer3_2_77()
PageViewer3_2_79()
PageViewer3_2_80()
PageViewer3_2_84()
PageViewer3_2_85()
PageViewer3_2_86()
PageViewer3_2_87()
PageViewer3_2_88()
PageViewer3_2_89()
PageViewer3_2_90()
PageViewer3_2_91()
PageViewer3_2_92()
PageViewer3_2_93()
PageViewer3_2_94()
PageViewer3_2_95()
PageViewer3_2_96()
PageViewer3_2_97()
PageViewer3_2_98()
PageViewer3_2_99()
PageViewer3_2_100()
PageViewer3_2_102()
PageViewer3_2_103()
PageViewer3_2_104()
PageViewer3_2_105()
PageViewer3_2_106()
PageViewer3_2_107()
PageViewer3_2_108()
PageViewer3_2_109()
PageViewer3_2_110()
PageViewer3_2_111()
PageViewer3_2_112()
PageViewer3_2_114()
PageViewer3_2_115()
PageViewer3_2_116()
PageViewer3_2_117()
PageViewer3_2_118()
PageViewer3_2_119()
PageViewer3_2_120()
PageViewer3_2_121()
PageViewer3_2_122()
PageViewer3_2_123()
PageViewer3_2_124()
PageViewer3_2_125() 
PageViewer3_2_126()
PageViewer3_2_127()
PageViewer3_2_128()
PageViewer3_2_129()
PageViewer3_2_130()
PageViewer3_2_132()
PageViewer3_2_133()
PageViewer3_2_134()
PageViewer3_2_135()
PageViewer3_2_136()
PageViewer3_2_137()
PageViewer3_2_138()
PageViewer3_2_139()
PageViewer3_2_140()
PageViewer3_2_141()
PageViewer3_2_142() 
PageViewer3_2_143()
PageViewer3_2_144()
PageViewer3_2_145()
PageViewer3_2_146()
PageViewer3_2_148() 
PageViewer3_2_149()
PageViewer3_2_150()
PageViewer3_2_151() 
PageViewer3_2_153()
PageViewer3_2_154()
PageViewer3_2_156()
PageViewer3_2_157()
PageViewer3_2_158()
PageViewer3_2_159()
PageViewer3_2_160()
PageViewer3_2_161()
PageViewer3_2_162()
PageViewer3_2_163()
PageViewer3_2_164()
PageViewer3_2_165()
PageViewer3_2_166()
PageViewer3_2_167()
PageViewer3_2_168()
PageViewer3_2_169()
PageViewer3_2_170()
PageViewer3_2_171()
PageViewer3_2_172()
PageViewer3_2_175()
PageViewer3_2_176()
PageViewer3_2_177()
PageViewer3_2_178()
PageViewer3_2_179() 
PageViewer3_2_180()
PageViewer3_2_181()
PageViewer3_2_182()
PageViewer3_2_183()
PageViewer3_2_190()
PageViewer3_2_191()
PageViewer3_2_192() 
PageViewer3_2_193()
PageViewer3_2_194()
PageViewer3_2_195()
PageViewer3_2_196()
PageViewer3_2_197()
PageViewer3_2_198()
PageViewer3_2_199()
PageViewer3_2_200()
PageViewer3_2_201()
PageViewer3_2_202()
PageViewer3_2_203()
PageViewer3_2_204()
PageViewer3_2_205()
PageViewer3_2_206()
PageViewer3_2_207()
PageViewer3_2_208()
PageViewer3_2_209()
PageViewer3_2_210()
PageViewer3_2_211()
PageViewer3_2_212()
PageViewer3_2_213()
PageViewer3_2_214()
PageViewer3_2_215()
PageViewer3_2_216()
PageViewer3_2_217()
PageViewer3_2_218()
PageViewer3_2_219()
PageViewer3_2_220()
PageViewer3_2_221()
PageViewer3_2_222()
PageViewer3_2_223()
PageViewer3_2_224()
PageViewer3_2_225()
PageViewer3_2_226()
PageViewer3_2_227()
PageViewer3_2_228()
PageViewer3_2_229()
PageViewer3_2_230()
PageViewer3_2_231()
PageViewer3_2_232()
PageViewer3_2_233()
PageViewer3_2_234()
PageViewer3_2_235()
PageViewer3_2_236()
PageViewer3_2_237()
PageViewer3_2_238()
PageViewer3_2_239()
PageViewer3_2_240()
PageViewer3_2_241()
PageViewer3_2_242()
PageViewer3_2_243()
PageViewer3_2_244()
PageViewer3_2_245()
PageViewer3_2_246()
PageViewer3_2_247()
PageViewer3_2_248()
PageViewer3_2_249()
PageViewer3_2_250()
PageViewer3_2_251()
PageViewer3_2_252()
PageViewer3_2_253()
PageViewer3_2_254()
PageViewer3_2_255()
PageViewer3_2_256()
PageViewer3_2_257()
PageViewer3_2_258()
PageViewer3_2_259()
PageViewer3_2_260()
PageViewer3_2_261()
PageViewer3_2_263()
PageViewer3_2_264()
PageViewer3_2_265()
PageViewer3_2_266()
PageViewer3_2_267()
PageViewer3_2_268()
PageViewer3_2_269()
PageViewer3_2_270()
PageViewer3_2_271()
PageViewer3_2_272()
PageViewer3_2_273()
PageViewer3_2_274()
PageViewer3_2_275()
PageViewer3_2_276()
PageViewer3_2_277()
PageViewer3_2_278()
PageViewer3_2_279()
PageViewer3_2_280()
PageViewer3_2_281()
PageViewer3_2_282()
PageViewer3_2_283()
PageViewer3_2_292()
PageViewer3_2_293()
PageViewer3_2_294()
PageViewer3_2_295()
PageViewer3_2_296()
PageViewer3_2_297()
PageViewer3_2_298()
PageViewer3_2_299()
PageViewer3_2_300()

Func PageViewer3_2_8()
	Local $TestCaseID = '3.2.8' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Select whole image,click tools menu--->select left 90 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The image will left 90 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	RotataImageImPageViwer('Left90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_9()
	Local $TestCaseID = '3.2.9' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:In image ,select area,then click tools menu--->select left 90 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The select image area will left 90 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	RotataImageImPageViwer('Left90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_10()
	Local $TestCaseID = '3.2.10' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:select left 90 degrees ,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"'
	Local $sStep3 = '3:Click "No" button'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user cancel rotate operate(The screen capture should contain string "This Text Annotation!" and no rotated)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	RotataImageImPageViwer('Left90Degree')
	If Not ClickButtonOnPageViewerSaveAnooDlg('NO', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_11()
	Local $TestCaseID = '3.2.11' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:select left 90 degrees ,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"'
	Local $sStep3 = '3:Click "Yes" button'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Image will rotate and annotation will delete(The screen capture should rotated and no annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	RotataImageImPageViwer('Left90Degree')
	If Not ClickButtonOnPageViewerSaveAnooDlg('YES', $TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(1)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_12()
	Local $TestCaseID = '3.2.12' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Select whole image,click tools menu--->select right 90 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The image will right 90 degreess'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	RotataImageImPageViwer('Right90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_13()
	Local $TestCaseID = '3.2.13' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:In image ,select area,then click context menu--->select right 90 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The select image area will right 90 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()
	RotataImageImPageViwer('Right90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_14()
	Local $TestCaseID = '3.2.14' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Add annotations, then click tools menu'
	Local $sStep3 = '3:select right 90 degrees ,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"'
	Local $sStep4 = '4:Click "No" button'
	Local $sRes   = 'Res:Allow user cancel rotate operate (The screen capture should contain string "This Text Annotation!" and no rotated)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	RotataImageImPageViwer('Right90Degree')
	If Not ClickButtonOnPageViewerSaveAnooDlg('NO', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_15()
	Local $TestCaseID = '3.2.15' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Add annotations, then click tools menu'
	Local $sStep3 = '3:select right 90 degrees ,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"'
	Local $sStep4 = '4:Click "Yes" button'
	Local $sRes   = 'Res:Image will rotate and annotation will delete(The screen capture should rotated and no annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	RotataImageImPageViwer('Right90Degree')
	If Not ClickButtonOnPageViewerSaveAnooDlg('YES', $TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_16()
	Local $TestCaseID = '3.2.16' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Select whole image,click tools menu--->select 180 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The image will 180 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	RotataImageImPageViwer('180Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_17()
	Local $TestCaseID = '3.2.17' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:In image ,select area,then click tools  menu--->select 180 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The select image area will 180 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()
	RotataImageImPageViwer('180Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_18()
	Local $TestCaseID = '3.2.18' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Add annotations, then click tools menu'
	Local $sStep3 = '3:select 180 degrees ,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"'
	Local $sStep4 = '4:Click "No" button'
	Local $sRes   = 'Res:Allow user cancel rotate operate (The screen capture should contain string "This Text Annotation!" and no rotated)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	RotataImageImPageViwer('180Degree')
	If Not ClickButtonOnPageViewerSaveAnooDlg('NO', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_19()
	Local $TestCaseID = '3.2.19' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Add annotations, then click tools menu'
	Local $sStep3 = '3:select 180 degrees ,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"'
	Local $sStep4 = '4:Click "Yes" button'
	Local $sRes   = 'Res:Image will rotate and annotation will delete(The screen capture should rotated and no annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	RotataImageImPageViwer('180Degree')
	If Not ClickButtonOnPageViewerSaveAnooDlg('YES', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_20()
	Local $TestCaseID = '3.2.20' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:Select whole image,click tool menu--->select left 90 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The image will left 90 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	MouseClick('left',276,57)   ;rotate left 90
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_21()
	Local $TestCaseID = '3.2.21' 
	Local $sStep1 = '1:Select the image(BMP.bmp),switch to Page View.'
	Local $sStep2 = '2:In image ,select area,then in tools bar--->select right 90 degrees'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:The image will right 90 degrees'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()
	MouseClick('left',321,61)   ;rotate right 90
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_22()
	Local $TestCaseID = '3.2.22' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the single image("OCR.jpg"),switch to Page View'
	Local $sStep3 = '3:Click preform button from tool bar'
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.PM will preform OCR operate and switch to OCR View 2.Check OCR result is correct(The screen capture should be the OCR result)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickOCRButtonInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_23()
	Local $TestCaseID = '3.2.23' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the other image on file list'
	Local $sStep3 = '3:Click preform button from tools menu.'
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.PM will preform OCR operate on current image then switch to OCR View 2.Check OCR result is correct(The screen capture should be the OCR result on sample "OCR2.TIF")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenFileInPagewier($sSampleFolderPath & "OCR2.TIF", $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	PerformOCRFromToolsMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_25()
	Local $TestCaseID = '3.2.25' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the single image("OCR.jpg"),switch to Page View'
	Local $sStep3 = '3:Click preform button from tool menu'
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.PM will preform OCR operate and switch to OCR View 2.Check OCR result is correct(The screen capture should be the OCR result of sample "OCR.jpg")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	PerformOCRFromToolsMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_27()
	Local $TestCaseID = '3.2.27' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:Add annotations on image'
	Local $sStep4 = '4:Click Hide annotations option from context menu'
	Local $sRes   = 'Res:Add annotations will hide(There are no annotation on screen capture file)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	SelectMoveOptionImageMenu()
	ClickShowAnnotationInContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_28()
	Local $TestCaseID = '3.2.28' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:Add annotations on image'
	Local $sStep4 = '4:Click show annotations option from context menu'
	Local $sRes   = 'Res:Annotations will show(The screen capture should has annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	SelectMoveOptionImageMenu()
	ClickShowAnnotationInContextMenu()
	ClickShowAnnotationInContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_29()
	Local $TestCaseID = '3.2.29' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:Add annotations on image'
	Local $sStep4 = '4:Click Hide annotations option from image menu'
	Local $sRes   = 'Res:Add annotations will hide(The screen capture should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	SelectMoveOptionImageMenu()
	ClickShowAnnotationInImageMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_30()
	Local $TestCaseID = '3.2.30' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:Add annotations on image'
	Local $sStep4 = '4:Click Hide annotations option from image menu'
	Local $sRes   = 'Res:Annotations will show(The screen capture should has annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	SelectMoveOptionImageMenu()
	ClickShowAnnotationInImageMenu()
	ClickShowAnnotationInImageMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_31()
	Local $TestCaseID = '3.2.31' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:Click add audio option from propeties?'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Check Initial state:1.Play(disable) 2.Pause(disable) 3.Stop(disable) 4.Record 5.OK(disable)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, GetAutioMemoCtrlHandle(), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_37()
	Local $TestCaseID = '3.2.37' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:Click add audio option from propeties,Click record button'
	Local $sStep4 = '4:Click OK button'
	Local $sRes   = 'Res:Check when switch to thumbnail view,will appear audio icon(The screen capture file is one file thumbnail with audio icon)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False	
	If Not RecordAudioInFileProperties($TestCaseID, $sLogFileName1) Then Return False	
	ControlClick($sFilePropertiesWndTitle, '', 1)   ;OK button
	Common_SleepInSeconds(1)
	ExitPageViewerByClickBackMenu($hPageViewer)	
	Common_SleepInSeconds(3)	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_43()
	Local $TestCaseID = '3.2.43' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user input text on image(The screent capture file has annotation "This is text annotation!")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	SelectMoveOptionImageMenu()
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_44()
	Local $TestCaseID = '3.2.44' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option'
	Local $sStep4 = '4:Input different language character'
	Local $sRes   = 'Res:Check can correct display(The screent capture file has double byte annotation "' & $sDoubleByteStrForTest & '")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX($sDoubleByteStrForTest)
	SelectMoveOptionImageMenu()
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_45()
	Local $TestCaseID = '3.2.45' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option'
	Local $sStep4 = '4:select font panel'
	Local $sRes   = 'Res:Allow user change font(The font of annotation should be changed)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ChangeTextAnnotationFont($TestCaseID, $sLogFileName1) Then Return False
	AddTextAnnotationInPageViewer_EX('Font Test!')
	SelectMoveOptionImageMenu()
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_46()
	Local $TestCaseID = '3.2.46' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option'
	Local $sStep4 = '4:Click font option from annotations menu'
	Local $sRes   = 'Res:Allow user change font(The font of annotation should be changed)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ChangeTextAnnotationFontFromImageMenu($TestCaseID, $sLogFileName1) Then Return False
	AddTextAnnotationInPageViewer_EX('Font Test!')
	SelectMoveOptionImageMenu()
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_48()
	Local $TestCaseID = '3.2.48' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,Click mouse right key, select Text Orientation option'
	Local $sStep4 = '4:Click font option from annotations menu'
	Local $sRes   = 'Res:Select horizontal option,then input text(The text annotation should be horizontal)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('Test anno is horizontal!')
	SelectMoveOptionImageMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_49()
	Local $TestCaseID = '3.2.49' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,Click mouse right key, select Text Orientation option'
	Local $sStep4 = '4:Select vertical option,then input text'
	Local $sRes   = 'Res:Allow user input vertical text(The text annotation should be vertical)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	;Change text anno is vertical
	MouseClick('left', 1128, 212)
	Common_SleepInSeconds(0.5)
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{RIGHT}')
	Common_SleepInSeconds(0.5)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	AddTextAnnotationInPageViewer_EX('Test anno is vertical!')
	SelectMoveOptionImageMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_50()
	Local $TestCaseID = '3.2.50' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,input some text information'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user modify text information(The text annotation is This Text Annotation!)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('This Text Annotation!')
	SelectMoveOptionImageMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_51()
	Local $TestCaseID = '3.2.51' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,input some text information'
	Local $sStep4 = '4:Select text information, move it'
	Local $sRes   = 'Res:Allow user move the position(The text anno shoule in right-lower conor)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('This Text Annotation!')
	SelectMoveOptionImageMenu()
	ClickSelectAnnotationButton()
	MouseClickDrag('left',$avTextAnnoPos[0], $avTextAnnoPos[1],1037,907)   ;move text anootation
	Common_SleepInSeconds(0.5)
	SelectMoveOptionImageMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_52()
	Local $TestCaseID = '3.2.52' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,input some text information'
	Local $sStep4 = '4:Select text information,click delete option from content menu'
	Local $sRes   = 'Res:Allow user delete annotations(there are should no annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('This Text Annotation!')
	SelectMoveOptionImageMenu()
	ClickSelectAnnotationButton()
	MouseClick('left',$avTextAnnoPos[0], $avTextAnnoPos[1])
	Common_SleepInSeconds(0.2)
	MouseClick('right',$avTextAnnoPos[0], $avTextAnnoPos[1])
	Common_SleepInSeconds(0.5)
	For $u = 0 to 2
		Send('{UP}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_53()
	Local $TestCaseID = '3.2.53' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,input some text information'
	Local $sStep4 = '4:Select text information,push "Del" keyboard'
	Local $sRes   = 'Res:Allow user delete annotations(there are should no annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('This Text Annotation!')
	SelectMoveOptionImageMenu()
	ClickSelectAnnotationButton()
	MouseClick('left',$avTextAnnoPos[0], $avTextAnnoPos[1])
	Common_SleepInSeconds(0.5)
	Send('{DEL}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_54()
	Local $TestCaseID = '3.2.54' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,input some text information'
	Local $sStep4 = '4:Select text information,Click zoom in-->x2'
	Local $sRes   = 'Res:Resize image later,add annotations can correct display(Image is zoom in x2, annotation show correct)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('This Text Annotation!')
	SelectMoveOptionImageMenu()
	ZoomInInPageViwer('x2')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_55()
	Local $TestCaseID = '3.2.55' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image("BMP.bmp"),switch to Page View'
	Local $sStep3 = '3:In annotations bar, select "Text" option,input some text information'
	Local $sStep4 = '4:Switch to thumbnail view,then switch to page view'
	Local $sRes   = 'Res:The annotation can correct save(The image has text annotation)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer_EX('This Text Annotation!')
	SelectMoveOptionImageMenu()
	ExitPageViewerByClickBackMenu($hPageViewer)
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_57()
	Local $TestCaseID = '3.2.57' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,click "Stamp"'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.Check default stamp total number is 26 2.Check this stamp name is correct(stamp menu should show correct)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickDownArrowOfStampButton()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_60()
	Local $TestCaseID = '3.2.60' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,click "Stamp"'
	Local $sStep3 = '3:Select other stamp,move to image'
	Local $sStep4 = '4:click mouse key'
	Local $sRes   = 'Res:1.Can success add stamp 2.Switch to thumbnail then switch to page again,Stamp still save(The image has stamp annotation(COPY))'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ExitPageViewerByClickBackMenu($hPageViewer)
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False			
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_61()
	Local $TestCaseID = '3.2.61' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,select stamps'
	Local $sStep4 = ''
	Local $sRes   = 'Res:It will show stamps thumbnail(The stamps properties dialog shown correct)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampsPrpertisWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_62()
	Local $TestCaseID = '3.2.62' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,check name legth less 20 character'
	Local $sRes   = 'Res:Name can correct input(The name is "0123456789")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not SetAddImageStampName('0123456789', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_63()
	Local $TestCaseID = '3.2.63' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,check name legth less 20 character'
	Local $sRes   = 'Res:Name can correct input(The name is "01234567890123456789")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not SetAddImageStampName('01234567890123456789', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_67()
	Local $TestCaseID = '3.2.67' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "Bitmap File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is BMP.bmp)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('BMP', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_68()
	Local $TestCaseID = '3.2.68' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "PCX File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is PCX.pcx)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('PCX', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_69()
	Local $TestCaseID = '3.2.69' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "TIFF File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is M-TIFF-Single page.tif)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('TIF', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_70()
	Local $TestCaseID = '3.2.70' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "JPEG File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is JPEG.jpg)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('JPEG', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_71()
	Local $TestCaseID = '3.2.71' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "PICT File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is PCT.pct)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('PCT', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_72()
	Local $TestCaseID = '3.2.72' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "Targa File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is TGA.tga)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('TGA', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_73()
	Local $TestCaseID = '3.2.73' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:In add image stamp dialog boxes,click "browse" button,select "PNG File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is PNG.png)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('PNG', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_74()
	Local $TestCaseID = '3.2.74' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add image button'
	Local $sStep4 = '4:IIn add image stamp dialog boxes,click "browse" button,select "PCD File"'
	Local $sRes   = 'Res:1.Allow user select stamp image 2.It will show thumbnail and can correct display 3.In stamps properties,will add this stamp (the stamp is PCD.pcd)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddImageStamp('PCD', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_76()
	Local $TestCaseID = '3.2.76' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add Text button'
	Local $sStep4 = '4:In add image stamp dialog boxes,check name legth less 20 character'
	Local $sRes   = 'Res:Name can correct input(The name is "1234567890")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not SetAddTextStampName('1234567890', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddTextStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_77()
	Local $TestCaseID = '3.2.77' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add Text button'
	Local $sStep4 = '4:In add text stamp dialog boxes,check name legth equal 20 character'
	Local $sRes   = 'Res:Name can correct input(The name is "12345678901234567890")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not SetAddTextStampName('12345678901234567890', $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddTextStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_79()
	Local $TestCaseID = '3.2.79' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add Text button'
	Local $sStep4 = '4:In add text stamp dialog boxes,check stamp text legth less 50 character'
	Local $sRes   = 'Res:1.Stamp text can correct input 2.In preview, can correct display '
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddTextStamp('1234567890123456789012345678901234567890', $TestCaseID, $sLogFileName1) Then Return False
	If ControlGetText($sAddTextStampWnd, '', 2080) == '1234567890123456789012345678901234567890' Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_80()
	Local $TestCaseID = '3.2.80' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add Text button'
	Local $sStep4 = '4:In add text stamp dialog boxes,check stamp text legth equal 50 character'
	Local $sRes   = 'Res:1.Stamp text can correct input 2.In preview, can correct display '
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddTextStamp('12345678901234567890123456789012345678901234567890', $TestCaseID, $sLogFileName1) Then Return False
	If ControlGetText($sAddTextStampWnd, '', 2080) == '12345678901234567890123456789012345678901234567890' Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_84()
	Local $TestCaseID = '3.2.84' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,click add Text button'
	Local $sStep4 = '4:In add text stamp dialog boxes,click "Font" button'
	Local $sRes   = 'Res:1.Check set font dialog boxes will appear 2.Change font can correct effect(The text stamp font has benn changed!)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddTextStamp('font test', $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextStampFont($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sAddTextStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_85()
	Local $TestCaseID = '3.2.85' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select a stamps'
	Local $sStep4 = '4:In add text stamp dialog boxes,click "Font" button'
	Local $sRes   = 'Res:click Delete button(The screen capture should has no "Approved" stamp,The first stamp is "Camcelled")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickDeleteButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampsPrpertisWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_86()
	Local $TestCaseID = '3.2.86' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,delete all stamps'
	Local $sStep4 = ''
	Local $sRes   = 'Res:1. In stamps properties dialog boxes,Delete button will disable  2.In annotations bar,click stamp button,it no show stamp (The scnreen capture should has no stamp!)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	For $i = 0 to 40
		If Not ClickDeleteButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Next
	If Not ClickOKButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(3)
	Send('{ENTER}')   ;close alert mesage
	Common_SleepInSeconds(1)
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampsPrpertisWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_87()
	Local $TestCaseID = '3.2.87' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select default stamps '
	Local $sStep4 = '4:Check "Modify" button'
	Local $sRes   = 'Res:This button is disable'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	ControlFocus($sStampsPrpertisWnd, '', 1)
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, ControlGetHandle($sStampsPrpertisWnd, '', 2088), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_88()
	Local $TestCaseID = '3.2.88' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select add text stamps '
	Local $sStep4 = '4:Check "Modify" button and click it'
	Local $sRes   = 'Res:1.This button is enable 2.Modify text stamp dialog will appear(The screen capture is odify text stamp dialog, text is Test222)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetAddTextStampName('Test111', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddTextStamp('Test222', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfAddTextStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(3)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sModifyTextStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_89()
	Local $TestCaseID = '3.2.89' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select add text stamps '
	Local $sStep4 = '4:Click "Modify" button,in Modify text stamp dialog, modify "Name" then click "OK"'
	Local $sRes   = 'Res:Modify content can corrct effect'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetAddTextStampName('Test111', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddTextStamp('Test222', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfAddTextStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If ControlFocus($sModifyTextStampWnd, '', 2082) Then
		For $i = 0 to 4
			Send('{DEL}')
		Next
	EndIf
	If Not ModifyTextStampName('HasBeenModified', $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfModifyTextStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If ControlGetText($sModifyTextStampWnd, '', 2082) == 'HasBeenModified11' Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_90()
	Local $TestCaseID = '3.2.90' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select add text stamps '
	Local $sStep4 = '4:Click "Modify" button,in Modify text stamp dialog, modify "stamp text" then click "OK"'
	Local $sRes   = 'Res:Stamp text content can correct effect'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetAddTextStampName('Test111', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddTextStamp('Test222', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfAddTextStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If ControlFocus($sModifyTextStampWnd, '', 2080) Then
		For $i = 0 to 4
			Send('{DEL}')
		Next
	EndIf
	If Not ModifyTextStampText('HasBeenModified', $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfModifyTextStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If ControlGetText($sModifyTextStampWnd, '', 2080) == 'HasBeenModified22' Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer3_2_91()
	Local $TestCaseID = '3.2.91' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select add image stamps '
	Local $sStep4 = '4:Check "Modify" button and click it'
	Local $sRes   = 'Res:1.This button is enable 2.Modify bitmap stamp dialog will appear(The screen capture is Modify bitmap stamp dialog )'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetAddImageStampName('NameTest', $TestCaseID, $sLogFileName1) Then Return False	
	If Not AddImageStamp('BMP', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfAddImageStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(3)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sModifyImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_92()
	Local $TestCaseID = '3.2.92' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select add image stamps '
	Local $sStep4 = '4:Click "Modify" button,in Modify stamp dialog, modify "Name" then click "OK"'
	Local $sRes   = 'Res:Modify content can corrct effect'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetAddImageStampName('NameTest', $TestCaseID, $sLogFileName1) Then Return False	
	If Not AddImageStamp('BMP', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfAddImageStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If ControlFocus($sModifyImageStampWnd, '', 2082) Then
		For $i = 0 to 4
			Send('{DEL}')
		Next
	EndIf
	If Not ModifyImageStampName('HasBeenModified', $TestCaseID, $sLogFileName1) Then Return False		
	If Not ClickOKButtonOfModifyImageStampWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If ControlGetText($sModifyImageStampWnd, '', 2082) == 'HasBeenModifiedest' Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_93()
	Local $TestCaseID = '3.2.93' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder'
	Local $sStep2 = '2:Select the image,switch to Page View,in annotations bar,select stamp button,click mouse right key,click "properties"'
	Local $sStep3 = '3:In stamps properties dialog boxes,Select add image stamps '
	Local $sStep4 = '4:Click "Modify" button,in Modify bitmap stamp dialog, modify "Image stamp file" then click "OK"'
	Local $sRes   = 'Res:Allow user modify image stamp(The stamp is PCX.pcx)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStamProPertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetAddImageStampName('NameTest', $TestCaseID, $sLogFileName1) Then Return False	
	If Not AddImageStamp('BMP', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfAddImageStampWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ModifyImageStampImage('PCX', $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfModifyImageStampWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickModifyButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sModifyImageStampWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_94()
	Local $TestCaseID = '3.2.94' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View,in annotations bar,select stamp button,select '
	Local $sStep2 = '2:In image add stamp'
	Local $sStep3 = '3:Select add stamp,click delete option from content menu'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user delete annotations(The screen capture should has no image stamp)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ClickSelectAnnotationButton()
	
	;Delete image stamp ftom cotext menu
	MouseClick('left',599, 370)  
	Common_SleepInSeconds(0.5)
	MouseClick('right',599, 370)  
	Common_SleepInSeconds(0.5)
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_95()
	Local $TestCaseID = '3.2.95' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View,in annotations bar,select stamp button,select '
	Local $sStep2 = '2:In image add stamp'
	Local $sStep3 = '3:Select stamp information,push "Del" keyboard'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user delete annotations(The screen capture should has no image stamp)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ClickSelectAnnotationButton()
	
	;Delete image stamp ftom cotext menu
	MouseClick('left',599, 370)  
	Common_SleepInSeconds(0.5)
	Send('{Del}')
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_96()
	Local $TestCaseID = '3.2.96' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View,in annotations bar,select stamp button,select '
	Local $sStep2 = '2:In image add stamp'
	Local $sStep3 = '3:Select stamp information,Click zoom in-->x2'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Resize image later,add annotations can correct display(The screen capture is zoom in and stamp shown correct)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ClickSelectAnnotationButton()
	ZoomInInPageViwer('x2')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_97()
	Local $TestCaseID = '3.2.97' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View,in annotations bar,select stamp button,select '
	Local $sStep2 = '2:In image add stamp'
	Local $sStep3 = '3:Select stamp information, move it'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user move the position(The stamp should in right-lower connor)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ClickSelectAnnotationButton()
	
	;Move stamp
	MouseClick('left',599, 370)  
	Common_SleepInSeconds(0.5)  
	MouseClickDrag('left',599, 370, 998, 916)
	Common_SleepInSeconds(0.5)  
	MouseClick('left',599, 370) 
	Common_SleepInSeconds(1)  
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_98()
	Local $TestCaseID = '3.2.98' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View,in annotations bar,select stamp button,select '
	Local $sStep2 = '2:In image add stamp'
	Local $sStep3 = '3:Select stamp, adjust stamp size'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user adjust stamp size(The stamp size should zoom in)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ClickSelectAnnotationButton()

	;Zoom in stamp
	MouseClick('left',599, 370)  
	Common_SleepInSeconds(0.5)  
	MouseClickDrag('left',815, 468, 975, 975)
	Common_SleepInSeconds(0.5)  
	MouseClick('left',550, 340) 
	Common_SleepInSeconds(1)  
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_99()
	Local $TestCaseID = '3.2.99' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View,in annotations bar,select stamp button,select '
	Local $sStep2 = '2:In image add stamp'
	Local $sStep3 = '3:Switch to thumbnail view,then switch to page view'
	Local $sStep4 = ''
	Local $sRes   = 'Res:The annotation can correct save(The image should has stamp of "Copy")'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStampAnnotation()
	ClickSelectAnnotationButton()
	ExitPageViewerByClickBackMenu($hPageViewer)	
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_100()
	Local $TestCaseID = '3.2.100' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View'
	Local $sStep2 = '2:Click annotations menu--->click stamps'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.The Stamps properties dialog boxes will appear 2.Allow user add image stamps 3.Allow user add text stamps 4.Allow user delete stamps 5.Allow user modify add stamps(The stamp properties windows should has no stamp)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenStampPropertiesDlgFromImageMenu($TestCaseID, $sLogFileName1) Then Return False
		
	;Delete all stamps	
	For $i = 0 to 40
		If Not ClickDeleteButtonOfStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Next
	
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampsPrpertisWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_102()
	Local $TestCaseID = '3.2.102' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View'
	Local $sStep2 = '2:In annotations bar,select highlighter button'
	Local $sStep3 = '3:In image,use mouse drag a region'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Check highlight the selected area(The image should has highlight area)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_103()
	Local $TestCaseID = '3.2.103' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View'
	Local $sStep2 = '2:tations bar,select highlighter button,click mouse right key,click "Color" option'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:Check custom color dialog will appear(The image should be Clocl window)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfHighlighterButtonAnnotationBar($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorWnd, '', $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_104()
	Local $TestCaseID = '3.2.104' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View'
	Local $sStep2 = '2:In annotations bar,select highlighter button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:Select any color,click OK button'
	Local $sStep4 = '4:In image,user mouse drag a region'
	Local $sRes   = 'Res:It will select color highlight(The image highlight should be blue color)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfHighlighterButtonAnnotationBar($TestCaseID, $sLogFileName1) Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_105()
	Local $TestCaseID = '3.2.105' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View'
	Local $sStep2 = '2:In annotations bar,select highlighter button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:Select any color,click "Cancel" button'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user cancel this operate(The image highlight should be yellow color)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfHighlighterButtonAnnotationBar($TestCaseID, $sLogFileName1) Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'Cancel') Then Return False
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_106()
	Local $TestCaseID = '3.2.106' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View'
	Local $sStep2 = '2:In annotations bar,select highlighter button,then click annotations menu-->color'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.Check custom color dialog will appear 2.Allow user change highlight color (The highlight color should be blue color)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenColorWndFromImageMenu($TestCaseID, $sLogFileName1, 'Highlighter') Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_107()
	Local $TestCaseID = '3.2.107' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select highlighter button,and add highlighter to image'
	Local $sStep3 = '3:Select highlighter information, move it'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user move the position(The highlight should in righlt lower connor)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	ClickSelectAnnotationButton()
	MouseClickDrag('left', 587, 239, 994, 896)   ;move highlight
	Common_SleepInSeconds(0.5)
	MouseClick('left', 569, 228)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_108()
	Local $TestCaseID = '3.2.108' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select highlighter button,and add highlighter to image'
	Local $sStep3 = '3:Select highlighter, adjust highlighter size'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user adjust highlighter size(The highlight size should zoom in)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	ClickSelectAnnotationButton()

	;Zoom in highlight
	MouseClickDrag('left', 852, 294, 950, 510)  
	Common_SleepInSeconds(0.5)
	MouseClick('left', 424, 153)
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_109()
	Local $TestCaseID = '3.2.109' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select highlighter button,and add highlighter to image'
	Local $sStep3 = '3:Select add highlighter,click delete option from content menu'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user delete annotations(The image should not has highlight)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	ClickSelectAnnotationButton()

	;Delete hightlight from contex menu
	MouseClick('left', 830, 280) 
	Common_SleepInSeconds(0.2)
	MouseClick('right', 830, 280)  
	Common_SleepInSeconds(0.5)
	For $i = 0 to 2 
		Send('{UP}')
		Common_SleepInSeconds(0.2)
	Next	
	Send('{ENTER}')	
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_110()
	Local $TestCaseID = '3.2.110' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select highlighter button,and add highlighter to image'
	Local $sStep3 = '3:Select highlighter information,push "Del" keyboard'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Allow user delete annotations(The image should not has highlight)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	ClickSelectAnnotationButton()

	;Delete hightlight
	MouseClick('left', 830, 280) 
	Common_SleepInSeconds(0.2)
	Send('{DEL}')	
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_111()
	Local $TestCaseID = '3.2.111' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select highlighter button,and add highlighter to image'
	Local $sStep3 = '3:Select highlighter information,Click zoom in-->x2'
	Local $sStep4 = ''
	Local $sRes   = 'Res:Resize image later,add annotations can correct display(The image size and highlight is zoom in x2)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	ClickSelectAnnotationButton()
	MouseClick('left', 830, 280) 
	Common_SleepInSeconds(0.2)
	ZoomInInPageViwer('x2')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_112()
	Local $TestCaseID = '3.2.112' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select highlighter button,and add highlighter to image'
	Local $sStep3 = '3:Switch to thumbnail view,then switch to page view'
	Local $sStep4 = ''
	Local $sRes   = 'Res:The annotation can correct save(The image should has highlight)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	ExitPageViewerByClickBackMenu($hPageViewer)	
	Common_SleepInSeconds(3)	
	Send('{ENTER}')
	Common_SleepInSeconds(2)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_114()
	Local $TestCaseID = '3.2.114' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select freehand line button'
	Local $sStep3 = '3:In image,add freehand line'
	Local $sStep4 = ''
	Local $sRes   = 'Res:1.Check freehand line can correct add 2.Check freehand line default color is red(The image should has a red free hand line)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddFreeHandInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_115()
	Local $TestCaseID = '3.2.115' 
	Local $sStep1 = '1:Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:In annotations bar,select freehand line button,click mouse right key,click "Color" option'
	Local $sStep3 = ''
	Local $sStep4 = ''
	Local $sRes   = 'Res:Check custom color dialog will appear(The image is color window)'
	$sFailLogMsg = Common_ExecuteStep($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenColorWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_116()
	Local $TestCaseID = '3.2.116' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:'   &  'Select any color,click OK button' 
	Local $sStep4 = '4:'   &  'In image,add freehand line'
	Local $sRes   = 'Res:' &  'It will select color freehand line(The image free hand line color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenColorWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False	
	AddFreeHandInPageViwer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_117()
	Local $TestCaseID = '3.2.117' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:'   &  'Select any color,click "Cancel" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cancel this operate(The image free hand line color is red)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenColorWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'Cancel') Then Return False	
	AddFreeHandInPageViwer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_118()
	Local $TestCaseID = '3.2.118' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select highlighter button,then click annotations menu-->color'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check custom color dialog will appear 2.Allow user change freehand line color(The image free hand line color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not OpenColorWndFromImageMenu($TestCaseID, $sLogFileName1, 'FreeHand') Then Return False	
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False	
	AddFreeHandInPageViwer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_119()
	Local $TestCaseID = '3.2.119' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check line properties dialog boxes will appear(The image is "Line Properties" window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sLinePropertisWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_120()
	Local $TestCaseID = '3.2.120' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to thinner' 
	Local $sStep4 = '4:'   &  'Click "OK" button,then add freehand line'
	Local $sRes   = 'Res:' &  'The freehand line will user thinner(The free hand line size in image is thinner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thinner') Then Return False	
	AddFreeHandInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_121()
	Local $TestCaseID = '3.2.121' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to between the thinner thicker' 
	Local $sStep4 = '4:'   &  'Click "OK" button,then add freehand line'
	Local $sRes   = 'Res:' &  'Allow user adjust(The free hand line size in image is normal)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Normal') Then Return False	
	AddFreeHandInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_122()
	Local $TestCaseID = '3.2.122' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to thicker' 
	Local $sStep4 = '4:'   &  'Click "OK" button,then add freehand line'
	Local $sRes   = 'Res:' &  'The freehand line will user thicker(The free hand line size in image is thicker)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thicker') Then Return False	
	AddFreeHandInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_123()
	Local $TestCaseID = '3.2.123' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to thinner' 
	Local $sStep4 = '4:'   &  'Click "Cancel" button'
	Local $sRes   = 'Res:' &  'Allow user cancel this operate(The free hand line size in image is default)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfFreeHandBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'Cancel', 'Thicker') Then Return False	
	AddFreeHandInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_124()
	Local $TestCaseID = '3.2.124' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select freehand line button,then click annotations menu-->Line'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Allow user adjust line width 2.Allow user change Line color(The free hand line size and color will change)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenColorWndFromImageMenu($TestCaseID, $sLogFileName1, 'FreeHand') Then Return False	
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False		
	ClickFreeHandButtonInPageviwer()		
	If Not OpenLinePropertiesWndFromMenu($TestCaseID, $sLogFileName1, 'FreeHand') Then Return False	
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thicker') Then Return False
	AddFreeHandInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_125()
	Local $TestCaseID = '3.2.125' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Freehand line button,and add Freehand line to image'
	Local $sStep3 = '3:'   &  'Select Freehand line information, move it' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user move the position(The free hand line should in right-lower cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddFreeHandInPageViwer()
	ClickSelectAnnotationButton()
	MouseClickDrag('left', 490, 243, 796, 836)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_126()
	Local $TestCaseID = '3.2.126' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Freehand line button,and add Freehand line to image'
	Local $sStep3 = '3:'   &  'Select Freehand line, adjust size' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user adjust Freehand line size(The free hand line size is thicker)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddFreeHandInPageViwer()
	ClickSelectAnnotationButton()
	
	;adjest line size
	MouseClick('left', 490, 243)
	Common_SleepInSeconds(0.2)
	MouseClick('right', 490, 243)
	For $i = 0 to 2 
		Send('{UP}')
		Common_SleepInSeconds(0.3)
	Next
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thicker')
	MouseClick('left', 879, 257)
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_127()
	Local $TestCaseID = '3.2.127' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Freehand line button,and add Freehand line to image'
	Local $sStep3 = '3:'   &  'Select add Freehand line,click delete option from content menu' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotations(The image should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddFreeHandInPageViwer()
	ClickSelectAnnotationButton()
	
	;Delete line 
	MouseClick('left', 490, 243)
	Common_SleepInSeconds(0.2)
	MouseClick('right', 490, 243)
	Common_SleepInSeconds(0.5)
	SelectDeleteOptonOfContextMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_128()
	Local $TestCaseID = '3.2.128' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Freehand line button,and add Freehand line to image'
	Local $sStep3 = '3:'   &  'Select Freehand line information,push "Del" keyboard' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotations(The image should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddFreeHandInPageViwer()
	ClickSelectAnnotationButton()
	
	;Delete line 
	MouseClick('left', 490, 243)
	Common_SleepInSeconds(0.2)
	Send('{DEL}')
	Common_SleepInSeconds(0.5)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_129()
	Local $TestCaseID = '3.2.129' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Freehand line button,and add Freehand line to image'
	Local $sStep3 = '3:'   &  'Select Freehand line information,Click zoom in-->x2' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Resize image later,add annotations can correct display(The image and free hand line shou zoom in x2)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddFreeHandInPageViwer()
	ZoomInInPageViwer('x2')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_130()
	Local $TestCaseID = '3.2.130' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Freehand line button,and add Freehand line to image'
	Local $sStep3 = '3:'   &  'Switch to thumbnail view,then switch to page view' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The annotation can correct save(The image should has free hand line annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddFreeHandInPageViwer()
	ExitPageViewerFromFileMenu($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_132()
	Local $TestCaseID = '3.2.132' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select Straight line button'
	Local $sStep3 = '3:'   &  'add straight line to image' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check straight line can correct add 2.Check straight line default color is red(The image should has red straight line )'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStraightLineInPageViwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_133()
	Local $TestCaseID = '3.2.133' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check custom color dialog will appear(The image is color window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenColorWnd($TestCaseID, $sLogFileName1)  Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_134()
	Local $TestCaseID = '3.2.134' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:'   &  'Select any color,click OK button' 
	Local $sStep4 = '4:'   &  'In image,add straight line'
	Local $sRes   = 'Res:' &  'It will select color straight line(The image should has bule straight line)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenColorWnd($TestCaseID, $sLogFileName1)  Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddStraightLineInPageViwer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_135()
	Local $TestCaseID = '3.2.135' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Color" option'
	Local $sStep3 = '3:'   &  'Select any color,click "Cancel" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cancel this operate(The image should has red straight line)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenColorWnd($TestCaseID, $sLogFileName1)  Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'Cancel') Then Return False
	AddStraightLineInPageViwer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_136()
	Local $TestCaseID = '3.2.136' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight button,then click annotations menu-->color'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check custom color dialog will appear 2.Allow user change straight color(The image should has blue straight line)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenColorWndFromImageMenu($TestCaseID, $sLogFileName1, 'StraightLine') Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddStraightLineInPageViwer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_137()
	Local $TestCaseID = '3.2.137' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check line properties dialog boxes will appear(The image is line properties window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sLinePropertisWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_138()
	Local $TestCaseID = '3.2.138' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to thinner' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The straight line will user thinner(The image should has thinner straight line )'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thinner') Then Return False	
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_139()
	Local $TestCaseID = '3.2.139' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to between the thinner thicker' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user adjust (The image straight line size is middle size)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Normal') Then Return False	
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_140()
	Local $TestCaseID = '3.2.140' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to thicker' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The straight line will user thicker (The image straight line size is thicker)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thicker') Then Return False	
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_141()
	Local $TestCaseID = '3.2.141' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Change style(---->)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user use ---> style line (The image straight line is ---->)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not  AddjustStraightLineStyle($TestCaseID, $sLogFileName1,'->', 'OK') Then Return False
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_142()
	Local $TestCaseID = '3.2.142' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Change style(<----)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user use <--- style line (The image straight line is <--- )'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not  AddjustStraightLineStyle($TestCaseID, $sLogFileName1,'<-', 'OK') Then Return False
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_143()
	Local $TestCaseID = '3.2.143' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Change style(<---->)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user use <---> style line (The image straight line is <---> )'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not  AddjustStraightLineStyle($TestCaseID, $sLogFileName1,'<->', 'OK') Then Return False
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_144()
	Local $TestCaseID = '3.2.144' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select straight line button,click mouse right key,click "Line" option'
	Local $sStep3 = '3:'   &  'Adjust line width to thinner' 
	Local $sStep4 = '4:'   &  'Click "Cancel" button'
	Local $sRes   = 'Res:' &  'Allow user cancel this operate (The straight line of image is defaule size)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowButtonOfStraightLineBtnToOpenLinePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'Cancel', 'Thinner') Then Return False
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_145()
	Local $TestCaseID = '3.2.145' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'IIn annotations bar,select straight button,then click annotations menu-->Line'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Allow user adjust line width 2.Allow user change Line color 3.Allow user change line style (The image straight line color is blue, style is <->, size is Thicker )'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenColorWndFromImageMenu($TestCaseID, $sLogFileName1, 'StraightLine') Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	ClickStraightLineButtonInPageviwer()
	If Not OpenLinePropertiesWndFromMenu($TestCaseID, $sLogFileName1, 'StraightLine') Then Return False
	If Not AddJustLineAnnotationThinnerOrThicker($TestCaseID, $sLogFileName1, 'OK', 'Thicker') Then Return False
	ClickStraightLineButtonInPageviwer()
	If Not OpenLinePropertiesWndFromMenu($TestCaseID, $sLogFileName1, 'StraightLine') Then Return False	
	If Not AddjustStraightLineStyle($TestCaseID, $sLogFileName1,'<->' , 'OK') Then Return False		
	AddStraightLineInPageViwer()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_146()
	Local $TestCaseID = '3.2.146' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select straight line information, move it'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user move the position (The image straight line should in right lower conor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStraightLineInPageViwer()
	ClickSelectAnnotationButton()
	
	;move straight line
	MouseClickDrag('left', 795, 238,944,827)
	Common_SleepInSeconds(0.3)
	MouseClick('left',562, 252)
	Common_SleepInSeconds(0.5)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_148()
	Local $TestCaseID = '3.2.148' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select add straight line,click delete option from content menu'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotations (The image should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStraightLineInPageViwer()
	ClickSelectAnnotationButton()
	
	;Delete straight line
	MouseClick('left',795, 238)
	Common_SleepInSeconds(0.3)
	MouseClick('right',795, 238)
	Common_SleepInSeconds(0.5)
	SelectDeleteOptonOfContextMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_149()
	Local $TestCaseID = '3.2.149' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select straight line information,push "Del" keyboard'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotations (The image should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStraightLineInPageViwer()
	ClickSelectAnnotationButton()
	
	;Delete straight line
	MouseClick('left',795, 238)
	Common_SleepInSeconds(0.3)
	Send('{DEL}')
	Common_SleepInSeconds(0.5)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_150()
	Local $TestCaseID = '3.2.150' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select straight lineinformation,Click zoom in-->x2'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Resize image later,add annotations can correct display (The image size and annotation size is X2 )'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStraightLineInPageViwer()
	ClickSelectAnnotationButton()
	ZoomInInPageViwer('x2')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_151()
	Local $TestCaseID = '3.2.151' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Switch to thumbnail view,then switch to page view'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The annotation can correct save (The image should has straight line annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddStraightLineInPageViwer()
	ExitPageViewerFromFileMenu($hPageViewer)
	Common_SleepInSeconds(2.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_153()
	Local $TestCaseID = '3.2.153' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button'
	Local $sStep3 = '3:'   &  'add sticky note to image' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check sticky note can correct add 2.Check sticky note background color default color is yellow,character color is red'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_154()
	Local $TestCaseID = '3.2.154' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button'
	Local $sStep3 = '3:'   &  'add sticky note to image' 
	Local $sStep4 = '4:'   &  'Input different language character'
	Local $sRes   = 'Res:' &  'Check can correct display(The image sticky note is double byte sticky note)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, $sDoubleByteStrForTest) Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_156()
	Local $TestCaseID = '3.2.156' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button'
	Local $sStep3 = '3:'   &  'add sticky note to image' 
	Local $sStep4 = '4:'   &  'On sticky note, double click it'
	Local $sRes   = 'Res:' &  'Allow user modify note information(The image sticky note font and background should change)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	MouseClick('left',583,386, 3)
	Common_SleepInSeconds(2)
	If Not ClickFontBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextAnnotationFont($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickBackgroudBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	MouseClick('left',487,130)
	Common_SleepInSeconds(1)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_157()
	Local $TestCaseID = '3.2.157' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button'
	Local $sStep3 = '3:'   &  'add sticky note to image' 
	Local $sStep4 = '4:'   &  'In Sticky note dialog boxes,Mark on "Automatically adjust size" option'
	Local $sRes   = 'Res:' &  'It will automatically adjust size (The image sticky note size is just fit to text)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	EnargeStickyNoteSize()
	ClickSelectAnnotationButton()
	MouseClick('left',870,432, 3)
	Common_SleepInSeconds(2)
	If Not ClickAdjustSzieBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1,'Check') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	MouseClick('left',488,142)
	Common_SleepInSeconds(0.5)		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_158()
	Local $TestCaseID = '3.2.158' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button'
	Local $sStep3 = '3:'   &  'add sticky note to image' 
	Local $sStep4 = '4:'   &  'In Sticky note dialog boxes,Mark off "Automatically adjust size" option'
	Local $sRes   = 'Res:' &  'IIt will not automatically adjust size (The image sticky note size is large)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	EnargeStickyNoteSize()
	ClickSelectAnnotationButton()
	MouseClick('left',870,432, 3)
	Common_SleepInSeconds(2)
	If Not ClickAdjustSzieBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1,'Uncheck') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	MouseClick('left',488,142)
	Common_SleepInSeconds(0.5)		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_159()
	Local $TestCaseID = '3.2.159' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button,click mouse right key,click "Font" option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user change font (The image sticky note font is change)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArroeButtonOfStickyNoteBttonToOpenWnd($TestCaseID, $sLogFileName1, 'Font') Then Return False
	If Not ChangeTextAnnotationFont($TestCaseID, $sLogFileName1) Then Return False
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_160()
	Local $TestCaseID = '3.2.160' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button,click mouse right key,click "Background Color" option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check custom color dialog will appear (The image is color window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArroeButtonOfStickyNoteBttonToOpenWnd($TestCaseID, $sLogFileName1, 'BackGround') Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_161()
	Local $TestCaseID = '3.2.161' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button,click mouse right key,click "Background Color" option'
	Local $sStep3 = '3:'   &  'Select any color,click OK button' 
	Local $sStep4 = '4:'   &  'In image,add sticky note'
	Local $sRes   = 'Res:' &  'Allow user choose a background color to use (The image sticky note background is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArroeButtonOfStickyNoteBttonToOpenWnd($TestCaseID, $sLogFileName1, 'BackGround') Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False	
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False	
	ClickSelectAnnotationButton()	
	MouseClick('left', 483, 209)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_162()
	Local $TestCaseID = '3.2.162' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In annotations bar,select sticky note button,click mouse right key,click "Background Color" option'
	Local $sStep3 = '3:'   &  'Select any color,click "Cancel" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cancel this operate (The image sticky note background is yellow)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArroeButtonOfStickyNoteBttonToOpenWnd($TestCaseID, $sLogFileName1, 'BackGround') Then Return False
	If Not SelectAnColorOfColorWnd($TestCaseID, $sLogFileName1, 'Cancel') Then Return False
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False	
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False	
	ClickSelectAnnotationButton()	
	MouseClick('left', 483, 209)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_163()
	Local $TestCaseID = '3.2.163' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select sticky note information, move it'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user move the position (The image sticky note should in right lower cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False	
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False	
	ClickSelectAnnotationButton()	
	MouseClickDrag('left',682, 392, 908, 843)
	Common_SleepInSeconds(0.5)
	MouseClick('left', 483, 209)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_164()
	Local $TestCaseID = '3.2.164' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select sticky note, adjust size'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user adjust straight line size (The image sticky note size should enlarge)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	EnargeStickyNoteSize()
	ClickSelectAnnotationButton()
	MouseClick('left', 483, 209)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_165()
	Local $TestCaseID = '3.2.165' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select sticky note, adjust size'
	Local $sStep3 = '3:'   &  'Select add sticky note,click delete option from content menu' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotations (The image sticky note should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	
	;Delete sticky note
	MouseClick('left', 848, 402)
	Common_SleepInSeconds(1.5)
	MouseClick('right', 848, 402)
	Common_SleepInSeconds(0.5)
	For $i = 0 to 4
		Send('{UP}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_166()
	Local $TestCaseID = '3.2.166' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select sticky note, adjust size'
	Local $sStep3 = '3:'   &  'Select sticky note information,push "Del" keyboard' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotations (The image sticky note should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	
	;Delete sticky note
	MouseClick('left', 848, 402)
	Common_SleepInSeconds(1.5)
	Send('{DEL}')
	Common_SleepInSeconds(0.5)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_167()
	Local $TestCaseID = '3.2.167' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select sticky note, adjust size'
	Local $sStep3 = '3:'   &  'Select sticky note information,Click zoom in-->x2' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Resize image later,add annotations can correct display (The image and sticky note size should zoom in X2)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	ZoomInInPageViwer('x2')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_168()
	Local $TestCaseID = '3.2.168' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select sticky note, adjust size'
	Local $sStep3 = '3:'   &  'Switch to thumbnail view,then switch to page view' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The annotation can correct save (The image should has sticky note)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not AddStickyNoteAnnotationInStickyNoteWnd($TestCaseID, $sLogFileName1, 'Sticky Note Annotation Test') Then Return False
	If Not ClickOKBtnOnStickyNoteWnd($TestCaseID, $sLogFileName1) Then Return False
	ClickSelectAnnotationButton()
	ExitPageViewerByClickBackMenu($hPageViewer)	
	Common_SleepInSeconds(2.5)		
	Send('{ENTER}')
	Common_SleepInSeconds(2.5)		
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_169()
	Local $TestCaseID = '3.2.169' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Add annotations,Select annotations'
	Local $sStep3 = '3:'   &  'Click edit menu--->Cut and Paste it' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cut and paste annotation (The text annotation should in left up cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	ClickSelectAnnotationButton()
	ClickAddedTextAnonotationInPageViewer()
	CutPasteINEditMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_170()
	Local $TestCaseID = '3.2.170' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Add annotations,Select annotations'
	Local $sStep3 = '3:'   &  'Click edit menu--->Copy and Paste it' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user copy and paste annotation (There are should two text annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	ClickSelectAnnotationButton()
	ClickAddedTextAnonotationInPageViewer()
	 CopyPasteInEditMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_171()
	Local $TestCaseID = '3.2.171' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Add annotations,Select annotations'
	Local $sStep3 = '3:'   &  'Click edit menu--->Delete annotation' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete annotation (There are should no text annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	ClickSelectAnnotationButton()
	ClickAddedTextAnonotationInPageViewer()
	DelectDeleteInEditMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_172()
	Local $TestCaseID = '3.2.172' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Add annotations,Select annotations'
	Local $sStep3 = '3:'   &  'Click edit menu--->Cut and Paste it, then undo or redo' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user do undo/ redo (There are should two text annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	AddTextAnnotationInPageViewer()
	ClickSelectAnnotationButton()
	ClickAddedTextAnonotationInPageViewer()
	CopyPasteThenRedoUndoInEditMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_175()
	Local $TestCaseID = '3.2.175' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'D&D select image' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user move select image (The select image area should moved to right lower cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	MouseClickDrag('left', 501, 359,850,842)
	Common_SleepInSeconds(0.5)
	MouseClick('left', 483, 209)
	Common_SleepInSeconds(0.5)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_176()
	Local $TestCaseID = '3.2.176' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'Click edit menu--->Click Cut & Paste' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cut select image and paste to other area (The select image area should cut and paste to up left cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	CutPasteINEditMenu()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_177()
	Local $TestCaseID = '3.2.177' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'Click edit menu--->Click Copy & Paste' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user copy select image and paste to other area (The select image area should copy and paste to up left cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	CopyPasteInEditMenu()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_178()
	Local $TestCaseID = '3.2.178' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'Click edit menu--->Click delete option' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user delete select image (The select image area should is blank)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	DelectDeleteInEditMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_179()
	Local $TestCaseID = '3.2.179' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'Click edit menu--->Cut and Paste it, then undo or redo' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user execut undo/ redo (The select image area should copy and paste to up left cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	CopyPasteThenRedoUndoInEditMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_180()
	Local $TestCaseID = '3.2.180' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'Click context menu-->select cut/copy/paste/delete/undo/redo' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user execut these operate (The select image area should has two select areas. one in left up cornor, one in right lower cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	
	MouseClick('right',447, 230)
	SelectCopyInContextMenu()
	MouseClick('right',447, 230)
	SelectPasteInContextMenu()
	MouseClickDrag('left',327, 213,916,857)
	SelectImagaAreInPageViewer()
	MouseClick('right',447, 230)
	SelectCutInContextMenu()
	MouseClick('right',447, 230)
	SelectPasteInContextMenu()
	MouseClick('left',877, 245)
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_181()
	Local $TestCaseID = '3.2.181' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "select image" button.On image,use mouse drag a region'
	Local $sStep3 = '3:'   &  'From hotkey,Execut cut/copy/paste/delete/undo/redo' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user execut these operate (The select image area should has two select areas. one in left up cornor, one in right lower cornor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectImagaAreInPageViewer()	
	Send('^c')
	Send('^v')
	MouseClickDrag('left',327, 213,916,857)
	SelectImagaAreInPageViewer()
	Send('^x')
	Send('^v')
	MouseClick('left',877, 245)
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_182()
	Local $TestCaseID = '3.2.182' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("OCR.jpg")'
	Local $sStep2 = '2:'   &  'Click ocr button from tools bar.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'selected area will do ocr. The other area will not do ocr.(Only one line character has been perform OCR)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectSelectImageOptionInPageViewer()	
	SelectAnAreaInOCRJPGPageViewerToDoOCR()	
	ClickOCRButtonInPageviewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_183()
	Local $TestCaseID = '3.2.183' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("OCR.jpg")'
	Local $sStep2 = '2:'   &  'Click ocr button from tools menu.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'selected area will do ocr. The other area will not do ocr.(Only one line character has been perform OCR)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectSelectImageOptionInPageViewer()	
	SelectAnAreaInOCRJPGPageViewerToDoOCR()	
	ClickOCRMenuFromToolsMenu()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_190()
	Local $TestCaseID = '3.2.190' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "Eraser" button'
	Local $sStep3 = '3:'   &  'On image,use eraser function' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check mouse pointer will change eraser 2.Allow user eraser image (There should eraser in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_191()
	Local $TestCaseID = '3.2.191' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select Eraser button,click mouse right key,click "EraserSetting" option'
	Local $sStep3 = '3:'   &  'In Eraser setting dialog boxes,check default setting' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.The Eraser size is 10 2.The Eraser color is write'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfEraserButtonToOpenEraserPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sEraserSettingsWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_192()
	Local $TestCaseID = '3.2.192' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select Eraser button,click mouse right key,click "EraserSetting" option'
	Local $sStep3 = '3:'   &  'In Eraser setting dialog boxes,adjust eraser size: 1' 
	Local $sStep4 = '4:'   &  'On image, use eraser'
	Local $sRes   = 'Res:' &  'Check eraser size will change thin(The eraser in image is thin)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfEraserButtonToOpenEraserPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not AddjustEraserSize($TestCaseID, $sLogFileName1, 'Thin') Then Return False	
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_193()
	Local $TestCaseID = '3.2.193' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select Eraser button,click mouse right key,click "EraserSetting" option'
	Local $sStep3 = '3:'   &  'In Eraser setting dialog boxes,adjust eraser size: 80' 
	Local $sStep4 = '4:'   &  'On image, use eraser'
	Local $sRes   = 'Res:' &  'Check eraser size will change crude (The eraser in image is crude)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfEraserButtonToOpenEraserPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not AddjustEraserSize($TestCaseID, $sLogFileName1, 'Crude') Then Return False	
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_194()
	Local $TestCaseID = '3.2.194' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select Eraser button,click mouse right key,click "EraserSetting" option'
	Local $sStep3 = '3:'   &  'In Eraser setting dialog boxes,change eraser color' 
	Local $sStep4 = '4:'   &  'On image, use eraser'
	Local $sRes   = 'Res:' &  'Allow user change eraser color (The eraser in image should be green color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfEraserButtonToOpenEraserPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not ChangeEraserColor($TestCaseID, $sLogFileName1) Then Return False	
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_195()
	Local $TestCaseID = '3.2.195' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select Eraser button,click mouse right key,click "EraserSetting" option'
	Local $sStep3 = '3:'   &  'In Eraser setting dialog boxes,click suction tool' 
	Local $sStep4 = '4:'   &  'Move mouse to image ,click it'
	Local $sRes   = 'Res:' &  '1.Check mouser pointer will change suction 2.In eraser setting dialog boxes, select color frame will change suction color 3.Check when click later,mouse pointer will change eraser (The eraser in image should be purple color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	If Not ClickDownArrowButtonOfEraserButtonToOpenEraserPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickSuctionButtonInErasettingWnd($TestCaseID, $sLogFileName1) Then Return False	
	MouseClick('left',331, 716)
	Common_SleepInSeconds(0.5)
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_196()
	Local $TestCaseID = '3.2.196' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select 48-bit color image("48_Bit_Color_300.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check eraser button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is enable (The file "48_Bit_Color_300.tif" should has eraser)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '48_Bit_Color_300.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	Common_SleepInSeconds(5)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_197()
	Local $TestCaseID = '3.2.197' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select 16-bit grayscale image("16_Bit_Gray_360.TIF")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check eraser button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is enable (The file "16_Bit_Gray_360.TIF" should has eraser)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '16_Bit_Gray_360.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	Common_SleepInSeconds(5)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	UseEraserInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_198()
	Local $TestCaseID = '3.2.198' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Click touchup menu-->eraser'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check mouse pointer will change eraser 2.Allow user eraser image(The file "BMP.bmp" should has eraser)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	SelectEraserFromImageMenu()
	MouseClickDrag('left',479, 260, 749, 734)
	Common_SleepInSeconds(1)		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_199()
	Local $TestCaseID = '3.2.199' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In touchup bar,select "Crop" button'
	Local $sStep3 = '3:'   &  'On image,use crop function' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check mouse pointer will change crop 2.Allow user crop image and show crop area(The file "BMP.bmp" should be cut a part)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False	
	CropAnAreaInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_200()
	Local $TestCaseID = '3.2.200' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Add annotations, then in touchup bar,select "Crop" button'
	Local $sStep3 = '3:'   &  'On image,use crop function,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"' 
	Local $sStep4 = '4:'   &  'Click "No" button'
	Local $sRes   = 'Res:' &  'Allow user cancel crop operate(The file "BMP.bmp" should not be cut and has annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	CropAnAreaInPageviewer()
	Common_SleepInSeconds(2)
	ControlClick($sPageViwerAlertTitle, $sYes, 7)   ;No button
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_201()
	Local $TestCaseID = '3.2.201' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Add annotations, then in touchup bar,select "Crop" button'
	Local $sStep3 = '3:'   &  'On image,use crop function,PM will hint "This operation will delete the annotations on this page.Do you want to continue?"' 
	Local $sStep4 = '4:'   &  'Click "Yes" button'
	Local $sRes   = 'Res:' &  'Image will crop and annotation will delete(The file "BMP.bmp" should be cut as a part and has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	CropAnAreaInPageviewer()
	Common_SleepInSeconds(2)
	ControlClick($sPageViwerAlertTitle, $sYes, 6)   ;Yes button
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_202()
	Local $TestCaseID = '3.2.202' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select 48-bit color image("48_Bit_Color_300.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Crop button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the message that Selection tool doesnt work with 48-bit RGB color and 16-bit gray images.(The image should is window of "Presto! PageViewer" alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '48_Bit_Color_300.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	CropAnAreaInPageviewer()
	If WinWait($sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, 5) Then
		Common_SleepInSeconds(1)
		WinActivate($sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg)
		If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, '', $TestCaseID, $sLogFileName1) Then Return False
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf	
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_203()
	Local $TestCaseID = '3.2.203' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select 16-bit grayscale image("16_Bit_Gray_360.TIF")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Crop button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the message that Selection tool doesnt work with 48-bit RGB color and 16-bit gray images.(The image should is window of "Presto! PageViewer" alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '16_Bit_Gray_360.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	CropAnAreaInPageviewer()
	If WinWait($sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, 5) Then
		Common_SleepInSeconds(1)
		WinActivate($sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg)
		If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, '', $TestCaseID, $sLogFileName1) Then Return False
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf	
	Common_Close_PM($hPMHandle)		
EndFunc

Func PageViewer3_2_204()
	Local $TestCaseID = '3.2.204' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Click touchup menu-->Crop'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Check mouse pointer will change crop 2.Allow user crop image(The file "BMP.bmp" is cut as part of file.)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	CropAnAreaInPageviewerFromMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_205()
	Local $TestCaseID = '3.2.205' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "invert color" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole imae will invert color(The color of "BMP.bmp" is invert)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickInvertBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_206()
	Local $TestCaseID = '3.2.206' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select invert color'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select image area will invert color(The select area of "BMP.bmp" is invert)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSelectImageOptionInPageViewer()	
	SelectImagaAreInPageViewer()	
	ClickInvertBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_207()
	Local $TestCaseID = '3.2.207' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check invert color button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole imae will invert color(The color of "JPEG.jpg" is invert)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'JPEG.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickInvertBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_208()
	Local $TestCaseID = '3.2.208' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check invert color button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole imae will invert color(The color of "BW.tif" is invert)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickInvertBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_209()
	Local $TestCaseID = '3.2.209' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check invert color button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole imae will invert color(The color of "Gray.tif" is invert)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickInvertBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_210()
	Local $TestCaseID = '3.2.210' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Automatic image enhancement" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole image will automatic image enhancement(The color of "BMP.bmp" is enhancement)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAutomaticImageEnhancementBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_211()
	Local $TestCaseID = '3.2.211' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select Automatic image enhancement button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select image area will automatic image enhancement(The color of seelect area in "BMP.bmp" is enhancement)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSelectImageOptionInPageViewer()	
	SelectImagaAreInPageViewer()
	ClickAutomaticImageEnhancementBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_212()
	Local $TestCaseID = '3.2.212' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select Automatic image enhancement button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will automatic image enhancement(The color of in "JPEG.jpg" is enhancement)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'JPEG.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAutomaticImageEnhancementBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_213()
	Local $TestCaseID = '3.2.213' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select Automatic image enhancement button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable(The button of Automatic image enhancement button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAutomaticImageEnhancementBtnInPageviewer()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_214()
	Local $TestCaseID = '3.2.214' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select Automatic image enhancement button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable(The button of Automatic image enhancement button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAutomaticImageEnhancementBtnInPageviewer()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_215()
	Local $TestCaseID = '3.2.215' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Set brightness and contrast dialog boxes will appear(The scrren capture is Set Brightness and Contrast window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sSetBrightnessAndContrastWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_216()
	Local $TestCaseID = '3.2.216' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'Click "Cancel" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cancel this operate'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'Cancel') Then Return False
	Common_SleepInSeconds(1)
	If WinGetHandle($sSetBrightnessAndContrastWnd) Then	
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	Else
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	EndIf	
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_217()
	Local $TestCaseID = '3.2.217' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'Adjust brightness and contrast, Click "OK" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check modfiy set will effect(The Contrast and brightness of "BMP.bmp" is changed.)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1,40, -50) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_218()
	Local $TestCaseID = '3.2.218' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'In Set brightness and contrast dialog boxes, adjust contrast scoll bar to dark(-100)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change dark(The screen capture is drak)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1, -100, 0) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_219()
	Local $TestCaseID = '3.2.219' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'In Set brightness and contrast dialog boxes--->In contrast,manual input 100(Light)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change light(The screen capture is light)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1, 100, 0) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_220()
	Local $TestCaseID = '3.2.220' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'In Set brightness and contrast dialog boxes, adjust brightness scoll bar to soft(-100)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check setting can corrct effect(The color of "BMP.bmp" like gray)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1, 0, -100) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_221()
	Local $TestCaseID = '3.2.221' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'In Set brightness and contrast dialog boxes--->In brightness,manual input 100(Sharp)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check setting can corrct effect'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1, 0, 100) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_222()
	Local $TestCaseID = '3.2.222' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'In Set brightness and contrast dialog boxes,click zoom in button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check setting can corrct effect(The preview of "BMP.bmp" is zoom in)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickZommInOrZommOutInContrastBrightnessSettingWnd($TestCaseID, $sLogFileName1,'ZoomIn',2) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sSetBrightnessAndContrastWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_223()
	Local $TestCaseID = '3.2.223' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Contrast and brightness adjustment" button'
	Local $sStep3 = '3:'   &  'In Set brightness and contrast dialog boxes,click zoom out button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'In preview,It will zoom out  sample image(The preview of "BMP.bmp" is zoom out)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickZommInOrZommOutInContrastBrightnessSettingWnd($TestCaseID, $sLogFileName1,'ZoomOut',2) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sSetBrightnessAndContrastWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_224()
	Local $TestCaseID = '3.2.224' 
	Local $sStep1 = '1:'   &  'LLaunch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select Contrast and brightness adjustment button'
	Local $sStep3 = '3:'   &  'Adjust brightness and contrast, Click "OK" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'ICheck select image area will Contrast and brightness adjustment(The select area of "BMP.bmp" brightness and contrast is chaneged)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSelectImageOptionInPageViewer()	
	SelectImagaAreInPageViewer()	
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1, -50, 50) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_225()
	Local $TestCaseID = '3.2.225' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Contrast and brightness adjustment button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will Contrast and brightness adjustment(The select area of "JPEG.jpg" brightness and contrast is chaneged)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'JPEG.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1, -50, 50) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_226()
	Local $TestCaseID = '3.2.226' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Contrast and brightness adjustment button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable(The Contrast and brightness adjustment button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_227()
	Local $TestCaseID = '3.2.227' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Contrast and brightness adjustment button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable(The Contrast and brightness adjustment button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_228()
	Local $TestCaseID = '3.2.228' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Color Adjustment" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Color adjustment dialog boxes will appear(The image is Color Adjustment window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorAdjustmentWnd, '', $TestCaseID, $sLogFileName1) Then Return False		
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_229()
	Local $TestCaseID = '3.2.229' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Color Adjustment" button'
	Local $sStep3 = '3:'   &  'Click "Cancel" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Allow user cancel this operate'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	If Not ClickOkOrCancelBtnInColorAdjustmentWnd($TestCaseID, $sLogFileName1,'Cancel')	Then Return False
	If WinGetHandle($sColorAdjustmentWnd) Then
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	Else
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_230()
	Local $TestCaseID = '3.2.230' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Color Adjustment" button'
	Local $sStep3 = '3:'   &  'Adjust color, Click "OK" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check modfiy set will effect(The color of "BMP.bmp" is red)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	If Not SelectColorInColorSettingWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOkOrCancelBtnInColorAdjustmentWnd($TestCaseID, $sLogFileName1,'OK')	Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_231()
	Local $TestCaseID = '3.2.231' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Color Adjustment" button'
	Local $sStep3 = '3:'   &  'Color adjustment dialog boxes will appear,from palette select a color' 
	Local $sStep4 = '4:'   &  'Click OK button'
	Local $sRes   = 'Res:' &  '1.The Sample image color will change 2.In Page View, image color will change (The color of "BMP.bmp" is red)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	If Not SelectColorInColorSettingWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOkOrCancelBtnInColorAdjustmentWnd($TestCaseID, $sLogFileName1,'OK')	Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_232()
	Local $TestCaseID = '3.2.232' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Color Adjustment" button'
	Local $sStep3 = '3:'   &  'In Color adjustment dialog boxes will appear,click zoom in button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'In preview,It will zoom in  sample image (The preview of "BMP.bmp" is zoom in)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	ClickZommInOrZommOutInColorSettingSettingWnd($TestCaseID, $sLogFileName1,'ZoomIn',2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorAdjustmentWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_233()
	Local $TestCaseID = '3.2.233' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Color Adjustment" button'
	Local $sStep3 = '3:'   &  'In Color adjustment dialog boxes will appear,click zoom out button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'In preview,It will zoom out  sample image (The preview of "BMP.bmp" is zoom out)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	ClickZommInOrZommOutInColorSettingSettingWnd($TestCaseID, $sLogFileName1,'ZoomOut',2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sColorAdjustmentWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_234()
	Local $TestCaseID = '3.2.234' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select Color Adjustment button'
	Local $sStep3 = '3:'   &  'Adjust Color, Click "OK" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select image area color will adjustment (The select area of "BMP.bmp" color is changed to red)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSelectImageOptionInPageViewer()	
	SelectImagaAreInPageViewer()	
	If Not ClickColorAdjustmentBtnInPageviewer($TestCaseID, $sLogFileName1)	Then Return False
	If Not SelectColorInColorSettingWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOkOrCancelBtnInColorAdjustmentWnd($TestCaseID, $sLogFileName1,'OK')	Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_235()
	Local $TestCaseID = '3.2.235' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check color adjustment button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The image color will adjust (The color adjustment button is enable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_236()
	Local $TestCaseID = '3.2.236' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check color adjustment button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable (The color adjustment button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_237()
	Local $TestCaseID = '3.2.237' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check color adjustment button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable (The color adjustment button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_238()
	Local $TestCaseID = '3.2.238' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Remove Noise" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole image will remove noise (The file "BMP.bmp" is become unclear)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickRemoveNoiseBtnInPageviewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_239()
	Local $TestCaseID = '3.2.239' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'In image ,select area,then in touchup bar,select remove noise button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select image area will remove noise(The select area of "BMP.bmp" is become unclear)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectImagaAreInPageViewer()	
	ClickRemoveNoiseBtnInPageviewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_240()
	Local $TestCaseID = '3.2.240' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Remove Noise button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will remove noise(The file of "BMP.bmp" is become unclear)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'JPEG.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickRemoveNoiseBtnInPageviewer()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_241()
	Local $TestCaseID = '3.2.241' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Remove Noise button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable(The Remove Noise button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_242()
	Local $TestCaseID = '3.2.242' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Remove Noise button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This button is disable(The Remove Noise button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_243()
	Local $TestCaseID = '3.2.243' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Filp select image horizontally" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole image will change horizontally(The file "BMP.bmp" is change horizontally)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageHorizontallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_244()
	Local $TestCaseID = '3.2.244' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Filp select image horizontally" button'
	Local $sStep3 = '3:'   &  'In image ,select area,then in touchup bar,select "Filp select image horizontally" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select image area will change horizontally(The select area of file "BMP.bmp" is change horizontally)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectImagaAreInPageViewer()	
	ClickImageHorizontallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_245()
	Local $TestCaseID = '3.2.245' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Filp select image horizontally button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change horizontally(The file JPEG.jpg" is change horizontally)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'JPEG.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageHorizontallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_246()
	Local $TestCaseID = '3.2.246' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Filp select image horizontally button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change horizontally(The file BW.tif" is change horizontally)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageHorizontallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_247()
	Local $TestCaseID = '3.2.247' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Filp select image horizontally button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change horizontally(The file Gray.tif" is change horizontally)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageHorizontallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_248()
	Local $TestCaseID = '3.2.248' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Flip select image vertically" button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the whole image will change vertically(The file "BMP.bmp" is change vertically)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageVerticallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_249()
	Local $TestCaseID = '3.2.249' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select the image,switch to Page View("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select whole image,In touchup bar,select "Flip select image vertically" button'
	Local $sStep3 = '3:'   &  'In image ,select area,then in touchup bar,select "Flip select image vertically" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select image area will change vertically(The select area of file "BMP.bmp" is change vertically)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectImagaAreInPageViewer()
	ClickImageVerticallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_250()
	Local $TestCaseID = '3.2.250' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select color image("JPEG.jpg")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Flip select image vertically button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change vertically(The file "JPEG.jpg" is change vertically)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'JPEG.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageVerticallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_251()
	Local $TestCaseID = '3.2.251' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select B/W image("BW.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Flip select image vertically button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change vertically(The file "BW.tif" is change vertically)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageVerticallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_252()
	Local $TestCaseID = '3.2.252' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,Select Gray image("Gray.tif")'
	Local $sStep2 = '2:'   &  'Switch to Page View,in touchup bar,check Flip select image vertically button'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check image will change vertically(The file "Gray.tif" is change vertically)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'Gray.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickImageVerticallyBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_253()
	Local $TestCaseID = '3.2.253' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Select Annotation' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The highlight should in righlt lower connor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickHighlighterButtonAnnotationBar()
	HighLightAreaInPageViewer()	
	OpenImageMenu()
	Send('a')
	Common_SleepInSeconds(0.5)
	MouseClickDrag('left', 587, 239, 994, 896)   ;move highlight
	Common_SleepInSeconds(0.5)
	MouseClick('left', 569, 228)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_254()
	Local $TestCaseID = '3.2.254' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Select Image' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image will left 90 degrees)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectImagaAreInPageViewer()	
	RotataImageImPageViwer('Left90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_255()
	Local $TestCaseID = '3.2.255' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Move' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image vertical scrooler bar in bottom)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ZoomInInPageViwer('x4')
	SelectMoveOptionImageMenu()
	MouseClickDrag('left',608, 778, 614, 229)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_256()
	Local $TestCaseID = '3.2.256' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Text' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has text annotation "This Text Annotation!")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add text annotation
	OpenImageMenu()
	For $i = 0 to 2
		Send('{DOWN}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{RIGHT}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClick('left',585, 356)   ;Image area
	Common_SleepInSeconds(0.3)
	Send('This Text Annotation!')
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_257()
	Local $TestCaseID = '3.2.257' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Stamp' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has stamp of "approved")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add stamp annotation
	OpenImageMenu()
	Send('s')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClick('left', 581, 307)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_258()
	Local $TestCaseID = '3.2.258' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Highlighter' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has Highlighter annotataion)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add Highlighter annotation
	OpenImageMenu()
	For $i = 0 to 5
		Send('{DOWN}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{RIGHT}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClickDrag('left',476, 344, 774, 584)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_259()
	Local $TestCaseID = '3.2.259' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add FreeHand Line' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has FreeHand annotataion)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add FreeHand annotation
	OpenImageMenu()
	For $i = 0 to 4
		Send('{DOWN}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{RIGHT}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClickDrag('left',476, 344, 774, 684)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_260()
	Local $TestCaseID = '3.2.260' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'aadd Straight Line' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has Straight annotataion)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add Straight annotation
	OpenImageMenu()
	For $i = 0 to 3
		Send('{DOWN}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{RIGHT}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClickDrag('left',476, 344, 774, 684)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_261()
	Local $TestCaseID = '3.2.261' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Sticky Note' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has Sticky annotataion)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add Sticky annotation
	OpenImageMenu()
	For $i = 0 to 7
		Send('{DOWN}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{RIGHT}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClick('left',476, 344)
	Common_SleepInSeconds(2)
	Send('Sticky note annotataion')
	Common_SleepInSeconds(0.5)
	ControlClick($sStickyNoteWnd, '', 1)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_263()
	Local $TestCaseID = '3.2.263' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Eraser' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image has Eraser)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add Eraser annotation
	OpenImageMenu()
	Send('e')
	Common_SleepInSeconds(0.3)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClickDrag('left',476, 344, 774, 684)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_264()
	Local $TestCaseID = '3.2.264' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Crop' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image is cut)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Crop
	OpenImageMenu()
	Send('c')
	Common_SleepInSeconds(0.3)
	MouseClickDrag('left',476, 344, 774, 684)
	Common_SleepInSeconds(1)
	MouseClick('left', 500 ,400)
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_265()
	Local $TestCaseID = '3.2.265' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Deskew Page' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image is Deskew)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Deskew
	OpenImageMenu()
	Send('w')
	Common_SleepInSeconds(0.5)
	DeskewinPageviwer()
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_266()
	Local $TestCaseID = '3.2.266' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Flip Horizontally' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image is Flip Horizontally)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Flip Horizontally
	OpenImageMenu()
	Send('h')
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_267()
	Local $TestCaseID = '3.2.267' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Flip Vertically' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image is Flip Vertically)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Flip Vertically
	OpenImageMenu()
	For $i = 0 To 7
		Send('{UP}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_268()
	Local $TestCaseID = '3.2.268' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Invert Color' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image is Invert Color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Invert Color
	OpenImageMenu()
	For $i = 0 To 5
		Send('{UP}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_269()
	Local $TestCaseID = '3.2.269' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Automatic Image enhancement' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The image is clolor enhancement)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Invert Color
	OpenImageMenu()
	Send('{u}')
	Common_SleepInSeconds(1)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_270()
	Local $TestCaseID = '3.2.270' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'aadd Contrast and brightness Adjustment' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will  display correctly.(The Contrast and brightness is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Contrast and brightness Adjustment
	OpenImageMenu()
	Send('o')
	Common_SleepInSeconds(3)
	If Not SetContrastBrightnessInPageViewer($TestCaseID, $sLogFileName1,40, -50) Then Return False	
	If Not ClickOKOrCancelBtnSetBrightnessAndContrastBtnInPageviewer($TestCaseID, $sLogFileName1, 'OK') Then Return False	
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_271()
	Local $TestCaseID = '3.2.271' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Color Adjustment' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will display correctly.(The clolr is red)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Color Adjustment
	OpenImageMenu()
	Send('j')
	Common_SleepInSeconds(3)
	If Not SelectColorInColorSettingWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOkOrCancelBtnInColorAdjustmentWnd($TestCaseID, $sLogFileName1,'OK')	Then Return False	
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_272()
	Local $TestCaseID = '3.2.272' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Remove noise' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will display correctly.(The clolr is red)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;Remove noise
	OpenImageMenu()
	Send('v')
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_273()
	Local $TestCaseID = '3.2.273' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'click Image menu'
	Local $sStep3 = '3:'   &  'add Text' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the effect will display correctly.(The image has string "Test annotation")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False

	;add Text
	OpenImageMenu()
	For $i = 0 To 2
		Send('{DOWN}')
		Common_SleepInSeconds(0.2)
	Next
	Send('{Right}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(0.5)
	MouseClick('left', 628, 425)
	Common_SleepInSeconds(0.5)
	Send("Test annotation")
	Common_SleepInSeconds(0.5)
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_274()
	Local $TestCaseID = '3.2.274' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select the image,Switch to Page View'
	Local $sStep3 = '3:'   &  'Click deskew image  from task bar.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'On image, will appear deskew tool (The image hasdeskew tool)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickDeskewToolBtnInpageViewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_275()
	Local $TestCaseID = '3.2.275' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select the image,Switch to Page View'
	Local $sStep3 = '3:'   &  'Click deskew image  from task bar.' 
	Local $sStep4 = '4:'   &  'Select deskew tool, D&D it'
	Local $sRes   = 'Res:' &  'Allow user can D&D deskew tool(The image hasdeskew tool has been moved)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickDeskewToolBtnInpageViewer()
	DeskewinPageviwer_()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_276()
	Local $TestCaseID = '3.2.276' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select the image,Switch to Page View'
	Local $sStep3 = '3:'   &  'Click deskew image  from task bar.' 
	Local $sStep4 = '4:'   &  'Select deskew tool, Rotate deskew tool, then click '
	Local $sRes   = 'Res:' &  'Allow user deskew image(The image orientation is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickDeskewToolBtnInpageViewer()
	DeskewinPageviwer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_277()
	Local $TestCaseID = '3.2.277' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select the image,Switch to Page View'
	Local $sStep3 = '3:'   &  'Click deskew image option from image Menu' 
	Local $sStep4 = '4:'   &  'Select deskew tool, Rotate deskew tool, then click '
	Local $sRes   = 'Res:' &  'Allow user deskew image(The image orientation is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;Deskew
	OpenImageMenu()
	Send('w')
	Common_SleepInSeconds(0.5)
	DeskewinPageviwer()
	SelectMoveOptionImageMenu()
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_278()
	Local $TestCaseID = '3.2.278' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'edit image'
	Local $sStep3 = '3:'   &  'click save on context menu on work area.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check edit results is display correctly.(The image should has string "This Text Annotation!")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	SelectSelectImageOptionInPageViewer()	
	ClickMouseButtonInPageviwerView('right')
	SelectSaveOptionInContextMenu()
	ExitPageViewerByClickBackMenu($hPageViewer)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_279()
	Local $TestCaseID = '3.2.279' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'edit image'
	Local $sStep3 = '3:'   &  'click save on context menu on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check edit results is display correctly.(The image should has string "This Text Annotation!")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	SelectSelectImageOptionInPageViewer()	
	SelectFileInFileListForPageViewer(1, 'right')
	SelectSaveOptionInContextMenu()
	ExitPageViewerByClickBackMenu($hPageViewer)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_280()
	Local $TestCaseID = '3.2.280' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'edit image'
	Local $sStep3 = '3:'   &  'click save on file menu.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check edit results is display correctly.(The image should has string "This Text Annotation!")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	OpenFileMenu()
	Send('a')
	Common_SleepInSeconds(1)
	ExitPageViewerByClickBackMenu($hPageViewer)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_281()
	Local $TestCaseID = '3.2.281' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'edit image'
	Local $sStep3 = '3:'   &  'switch to file.' 
	Local $sStep4 = '4:'   &  'Click "Yes" button'
	Local $sRes   = 'Res:' &  'check edit results is display correctly.(The image should has string "This Text Annotation!")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	ExitPageViewerByClickBackMenu($hPageViewer)	
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_282()
	Local $TestCaseID = '3.2.282' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'edit image'
	Local $sStep3 = '3:'   &  'close page.' 
	Local $sStep4 = '4:'   &  'Click "Yes" button'
	Local $sRes   = 'Res:' &  'check edit results is display correctly.(The image should has string "This Text Annotation!")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	ExitPageViewerByClickCloseButton($hPageViewer)
	ControlClick($sPageViewerSaveAnnoTitle, $sPageViewerSaveAnnoTitleText, 6)   ;Yes button
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_283()
	Local $TestCaseID = '3.2.283' 
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose image folder,switch to page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'edit image'
	Local $sStep3 = '3:'   &  'close page.' 
	Local $sStep4 = '4:'   &  'Click "no" button'
	Local $sRes   = 'Res:' &  'check edit results is display correctly.(The image should has no annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()
	ExitPageViewerByClickCloseButton($hPageViewer)
	ControlClick($sPageViewerSaveAnnoTitle, $sPageViewerSaveAnnoTitleText, 7)   ;NO button
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_292()
	Local $TestCaseID = '3.2.292' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Click Cancel' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The Save as window should be cancel with nothing changed.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'Cancel') Then Return False
	If WinGetHandle($sCommonWndClass, $sSaveAsWndText) Then
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	Else
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_293()
	Local $TestCaseID = '3.2.293' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name empty' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.(The iamge contain string "You must type a name.")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_294()
	Local $TestCaseID = '3.2.294' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Special character(-_@#$%)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '-_@#$%_3.2.294') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 1) Then Return False
	If Common_CompareFile($sPerformResultPath & '-_@#$%_3.2.294.bmp', $sCorrectResultPath & '-_@#$%_3.2.294.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_295()
	Local $TestCaseID = '3.2.295' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.(The iamge is pageviewer alert window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '\/:*?"<>|') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_296()
	Local $TestCaseID = '3.2.296' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that Just Space' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.(The iamge is pageviewer alert window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, ' ') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_297()
	Local $TestCaseID = '3.2.297' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Space in middle of name' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '-   _3.2.297') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 1) Then Return False
	If Common_CompareFile($sPerformResultPath & '-   _3.2.297.bmp', $sCorrectResultPath & '-   _3.2.297.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_298()
	Local $TestCaseID = '3.2.298' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Space in end of name' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '3.2.298     ') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 1) Then Return False
	If Common_CompareFile($sPerformResultPath & '3.2.298.bmp', $sCorrectResultPath & '3.2.298.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_299()
	Local $TestCaseID = '3.2.299' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.(The iamge is pageviewer alert window)'
	Local $slongestName = '1111111111111111111110000001111111111111111111111100000011111111111111111111110000001111111111111110000001111ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss1111111111111111111111111111.bmp'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $slongestName) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 1) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_300()
	Local $TestCaseID = '3.2.300' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	Local $slongName = '3.2.300.111111111111110000001111111111111111111111100000011111111111111111111110000001111111111111110000001111ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $slongName) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Common_CompareFile($sPerformResultPath & $slongName & '.bmp', $sCorrectResultPath & '3.2.300.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hViewinPageView, '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
;  ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
